<?php

namespace app\models\warehouse;

use think\facade\Db;
use think\Model;

class Admin extends Model
{
    protected $name = 'admin';
    protected $pk = 'id';

    public function isTokenExpired(){
        return ($this->expired < time()) ? 1 : 0;
    }


}
